home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / 6zenichu / 6+1 install_txt.exe / 6 zenichu a 1 navic.exe / scripts / DefineButton2_3888 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-11-28  |  484 b   |  24 lines

  1. on(release){
  2.    if(0 < _root.draglej)
  3.    {
  4.       _root.d_venca.l = "mon_ns_" add random(_root.NS_NUMBER) add "_100";
  5.       _root.d_venca.i = "go";
  6.       _root.stopdragall();
  7.       _root.hideall();
  8.    }
  9.    else if(_root.vyb == 1)
  10.    {
  11.       if(_root.penize == 0)
  12.       {
  13.          _root.itembar_add(26);
  14.       }
  15.       _root.penize += 1000;
  16.       _root.prachy.play();
  17.    }
  18.    tellTarget("_root.t" add this._name)
  19.    {
  20.       play();
  21.    }
  22.    _root.z_03_1.start();
  23. }
  24.